package view;


import java.awt.Frame;
import java.awt.Scrollbar;
import java.awt.event.AdjustmentEvent;
import java.awt.event.AdjustmentListener;
import java.util.Observable;
import java.util.Observer;

import model.TemperatureModel;

public class SliderCelsiusView extends SliderView {
	
	public SliderCelsiusView() {
		 sliderFrame = new Frame("Celsius");
	}
	
	public void update(Observable t, Object o) {
		double temp = ((TemperatureModel) t).getC();
		tempControl.setValue((int) temp); 
	}
	
}
